import 'package:flutter/cupertino.dart';
import 'package:flutter/material.dart';
import 'package:thinking/config/_.dart';
import 'package:thinking/utils/_.dart';
class Loading extends StatelessWidget{

 final double height;

  Loading({ this.height:0});

  @override
  Widget build(BuildContext context) {
    return Container(
      height: height != 0?Screen.setHeight(height):Screen.height(context),
      width: Screen.width(context),
      child: Center(
        child: Container(
          padding: EdgeInsets.all(20),
          child: Column(
            crossAxisAlignment: CrossAxisAlignment.center,
            mainAxisAlignment: MainAxisAlignment.center,
            children: [
              CircularProgressIndicator(
                color: ColorConfig.ThemeColor,
              ),
              Container(
                padding: EdgeInsets.fromLTRB(10.0, 10.0, 10.0, 0),
                child: Text(
                  "thinking~",
                  style: TextStyle(
                    color: ColorConfig.TextColor,
                    fontSize: 16.0,
                    decoration: TextDecoration.none,
                  ),
                ),
              )
            ],
          ),
        ),
      ),
    );
  }

}